/**
 * 代码模板。
 */
import {I18Parse,CommonLang} from '@lowcode/jpaas-common-lib';
import jsCompsLang from '../../../../../locales/lang/impl/form/jsCompsLang';
let lang = jsCompsLang;
let i18n=function (langKey,text) {
    return I18Parse.getI18Val(lang.jsCompsLang,langKey, text)
}
export default [
    {label:i18n('postJsonRequest','PostJson请求'),value: "//" + i18n('referenceDoc','参考文档') + ":http://doc.redxun.cn/docs/jpaas/axioReqUtil\n" +
            "rxAjax.postJson(url,params).then(res=>{console.info(res)})\n"},
    {label:i18n('postFormRequest','PostForm请求'),value: "//" + i18n('referenceDoc','参考文档') + ":http://doc.redxun.cn/docs/jpaas/axioReqUtil\n" +
            "rxAjax.postForm(url,params).then(res=>{console.info(res)})\n"},
    {label:i18n('getRequest','Get请求'),value: "//" + i18n('referenceDoc','参考文档') + ":http://doc.redxun.cn/docs/jpaas/axioReqUtil\n" +
            "rxAjax.get(url,params).then(res=>{console.info(res)})\n"},
    {label:i18n('openCustomComp','打开自定义组件'),value:"this.open({\n" +
    "        component:'',\n" +
    "        curVm:this.parentVm,\n" +
    "        max:true,\n" +
    "        title: '',\n" +
    "        data:{}\n" +
    "        },function (action){\n" +
    "        });"},
        {label:i18n('openUrlAddress','打开URL地址'),value:"this.openUrl({\n" +
                "        url:'',\n" +
                "        curVm:this.parentVm,\n" +
                "        max:true,\n" +
                "        title: ''\n" +
                "        },function (action){\n" +
                "      })"}
];